package IC.AST;

public class ArrayLocation extends Location 
{
	private Expression _array;
	private Expression _index;
	
	public Object Visit(Visitor visitor) { return visitor.Visit(this); }
	
	public ArrayLocation (Interval interval, Expression array, Expression index)
	{
		super(interval);
		GiveBirth(array);
		GiveBirth(index);
		_array = array;
		_index = index;
	}
	
	public Expression GetArray() { return _array; }
	public Expression GetIndex() { return _index; } 
}
